package com.jimmy.tx.controller;

import com.jimmy.tx.service.UserService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @version 1.0
 * @ ClassName App
 * <p> TODO
 * @ author 王志明
 * @ Date 2020/11/9 11:18
 */
public class App {
    public static void main(String[] args) {
        ApplicationContext ctx = new ClassPathXmlApplicationContext("applicationContext.xml");
        UserService userService = (UserService) ctx.getBean("userService");
        userService.transfer("jerry","tom",100.0);
    }
}
